home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Doc / libsys.tex < prev    next >
LaTeX Document  |  1994-10-06  |  5.8 KB  |  [TEXT/R*ch]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: libsys.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[R*ch]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 42 75 69 6c 74 2d 69 |\section|{Built-i|
|00000010| 6e 20 4d 6f 64 75 6c 65 | 20 5c 73 65 63 74 63 6f |n Module| \sectco|
|00000020| 64 65 7b 73 79 73 7d 7d | 0d 0d 5c 62 69 6d 6f 64 |de{sys}}|..\bimod|
|00000030| 69 6e 64 65 78 7b 73 79 | 73 7d 0d 54 68 69 73 20 |index{sy|s}.This |
|00000040| 6d 6f 64 75 6c 65 20 70 | 72 6f 76 69 64 65 73 20 |module p|rovides |
|00000050| 61 63 63 65 73 73 20 74 | 6f 20 73 6f 6d 65 20 76 |access t|o some v|
|00000060| 61 72 69 61 62 6c 65 73 | 20 75 73 65 64 20 6f 72 |ariables| used or|
|00000070| 20 6d 61 69 6e 74 61 69 | 6e 65 64 20 62 79 20 74 | maintai|ned by t|
|00000080| 68 65 0d 69 6e 74 65 72 | 70 72 65 74 65 72 20 61 |he.inter|preter a|
|00000090| 6e 64 20 74 6f 20 66 75 | 6e 63 74 69 6f 6e 73 20 |nd to fu|nctions |
|000000a0| 74 68 61 74 20 69 6e 74 | 65 72 61 63 74 20 73 74 |that int|eract st|
|000000b0| 72 6f 6e 67 6c 79 20 77 | 69 74 68 20 74 68 65 20 |rongly w|ith the |
|000000c0| 69 6e 74 65 72 70 72 65 | 74 65 72 2e 0d 49 74 20 |interpre|ter..It |
|000000d0| 69 73 20 61 6c 77 61 79 | 73 20 61 76 61 69 6c 61 |is alway|s availa|
|000000e0| 62 6c 65 2e 0d 0d 5c 72 | 65 6e 65 77 63 6f 6d 6d |ble...\r|enewcomm|
|000000f0| 61 6e 64 7b 5c 69 6e 64 | 65 78 73 75 62 69 74 65 |and{\ind|exsubite|
|00000100| 6d 7d 7b 28 69 6e 20 6d | 6f 64 75 6c 65 20 73 79 |m}{(in m|odule sy|
|00000110| 73 29 7d 0d 5c 62 65 67 | 69 6e 7b 64 61 74 61 64 |s)}.\beg|in{datad|
|00000120| 65 73 63 7d 7b 61 72 67 | 76 7d 0d 20 20 54 68 65 |esc}{arg|v}. The|
|00000130| 20 6c 69 73 74 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 | list of| command|
|00000140| 20 6c 69 6e 65 20 61 72 | 67 75 6d 65 6e 74 73 20 | line ar|guments |
|00000150| 70 61 73 73 65 64 20 74 | 6f 20 61 20 50 79 74 68 |passed t|o a Pyth|
|00000160| 6f 6e 20 73 63 72 69 70 | 74 2e 0d 20 20 5c 63 6f |on scrip|t.. \co|
|00000170| 64 65 7b 73 79 73 2e 61 | 72 67 76 5b 30 5d 7d 20 |de{sys.a|rgv[0]} |
|00000180| 69 73 20 74 68 65 20 73 | 63 72 69 70 74 20 6e 61 |is the s|cript na|
|00000190| 6d 65 2e 0d 20 20 49 66 | 20 6e 6f 20 73 63 72 69 |me.. If| no scri|
|000001a0| 70 74 20 6e 61 6d 65 20 | 77 61 73 20 70 61 73 73 |pt name |was pass|
|000001b0| 65 64 20 74 6f 20 74 68 | 65 20 50 79 74 68 6f 6e |ed to th|e Python|
|000001c0| 20 69 6e 74 65 72 70 72 | 65 74 65 72 2c 0d 20 20 | interpr|eter,. |
|000001d0| 5c 63 6f 64 65 7b 73 79 | 73 2e 61 72 67 76 7d 20 |\code{sy|s.argv} |
|000001e0| 69 73 20 65 6d 70 74 79 | 2e 0d 5c 65 6e 64 7b 64 |is empty|..\end{d|
|000001f0| 61 74 61 64 65 73 63 7d | 0d 0d 5c 62 65 67 69 6e |atadesc}|..\begin|
|00000200| 7b 64 61 74 61 64 65 73 | 63 7d 7b 62 75 69 6c 74 |{datades|c}{built|
|00000210| 69 6e 5f 6d 6f 64 75 6c | 65 5f 6e 61 6d 65 73 7d |in_modul|e_names}|
|00000220| 0d 20 20 41 20 6c 69 73 | 74 20 6f 66 20 73 74 72 |. A lis|t of str|
|00000230| 69 6e 67 73 20 67 69 76 | 69 6e 67 20 74 68 65 20 |ings giv|ing the |
|00000240| 6e 61 6d 65 73 20 6f 66 | 20 61 6c 6c 20 6d 6f 64 |names of| all mod|
|00000250| 75 6c 65 73 20 74 68 61 | 74 20 61 72 65 20 63 6f |ules tha|t are co|
|00000260| 6d 70 69 6c 65 64 0d 20 | 20 69 6e 74 6f 20 74 68 |mpiled. | into th|
|00000270| 69 73 20 50 79 74 68 6f | 6e 20 69 6e 74 65 72 70 |is Pytho|n interp|
|00000280| 72 65 74 65 72 2e 20 20 | 28 54 68 69 73 20 69 6e |reter. |(This in|
|00000290| 66 6f 72 6d 61 74 69 6f | 6e 20 69 73 20 6e 6f 74 |formatio|n is not|
|000002a0| 20 61 76 61 69 6c 61 62 | 6c 65 20 69 6e 0d 20 20 | availab|le in. |
|000002b0| 61 6e 79 20 6f 74 68 65 | 72 20 77 61 79 20 2d 2d |any othe|r way --|
|000002c0| 2d 20 5c 63 6f 64 65 7b | 73 79 73 2e 6d 6f 64 75 |- \code{|sys.modu|
|000002d0| 6c 65 73 2e 6b 65 79 73 | 28 29 7d 20 6f 6e 6c 79 |les.keys|()} only|
|000002e0| 20 6c 69 73 74 73 20 74 | 68 65 20 69 6d 70 6f 72 | lists t|he impor|
|000002f0| 74 65 64 0d 20 20 6d 6f | 64 75 6c 65 73 2e 29 0d |ted. mo|dules.).|
|00000300| 5c 65 6e 64 7b 64 61 74 | 61 64 65 73 63 7d 0d 0d |\end{dat|adesc}..|
|00000310| 5c 62 65 67 69 6e 7b 64 | 61 74 61 64 65 73 63 7d |\begin{d|atadesc}|
|00000320| 7b 63 68 65 63 6b 5f 69 | 6e 74 65 72 76 61 6c 7d |{check_i|nterval}|
|00000330| 0d 57 68 65 6e 20 74 68 | 69 73 20 76 61 72 69 61 |.When th|is varia|
|00000340| 62 6c 65 20 69 73 20 73 | 65 74 20 74 6f 20 61 6e |ble is s|et to an|
|00000350| 20 69 6e 74 65 67 65 72 | 20 76 61 6c 75 65 2c 20 | integer| value, |
|00000360| 69 74 20 64 65 74 65 72 | 6d 69 6e 65 73 20 68 6f |it deter|mines ho|
|00000370| 77 20 6f 66 74 65 6e 0d | 74 68 65 20 69 6e 74 65 |w often.|the inte|
|00000380| 72 70 72 65 74 65 72 20 | 63 68 65 63 6b 73 20 66 |rpreter |checks f|
|00000390| 6f 72 20 70 65 72 69 6f | 64 69 63 20 74 68 69 6e |or perio|dic thin|
|000003a0| 67 73 20 73 75 63 68 20 | 61 73 20 74 68 72 65 61 |gs such |as threa|
|000003b0| 64 20 73 77 69 74 63 68 | 65 73 20 61 6e 64 0d 73 |d switch|es and.s|
|000003c0| 69 67 6e 61 6c 20 68 61 | 6e 64 6c 65 72 73 2e 20 |ignal ha|ndlers. |
|000003d0| 20 54 68 65 20 64 65 66 | 61 75 6c 74 20 69 73 20 | The def|ault is |
|000003e0| 31 30 2c 20 6d 65 61 6e | 69 6e 67 20 74 68 65 20 |10, mean|ing the |
|000003f0| 63 68 65 63 6b 20 69 73 | 20 70 65 72 66 6f 72 6d |check is| perform|
|00000400| 65 64 0d 65 76 65 72 79 | 20 31 30 20 50 79 74 68 |ed.every| 10 Pyth|
|00000410| 6f 6e 20 76 69 72 74 75 | 61 6c 20 69 6e 73 74 72 |on virtu|al instr|
|00000420| 75 63 74 69 6f 6e 73 2e | 20 20 53 65 74 74 69 6e |uctions.| Settin|
|00000430| 67 20 74 68 69 73 20 74 | 6f 20 61 20 6c 61 72 67 |g this t|o a larg|
|00000440| 65 20 76 61 6c 75 65 0d | 6d 61 79 20 69 6e 63 72 |e value.|may incr|
|00000450| 65 61 73 65 20 70 65 72 | 66 6f 72 6d 61 6e 63 65 |ease per|formance|
|00000460| 20 66 6f 72 20 70 72 6f | 67 72 61 6d 73 20 75 73 | for pro|grams us|
|00000470| 69 6e 67 20 74 68 72 65 | 61 64 73 2e 20 20 53 65 |ing thre|ads. Se|
|00000480| 74 74 69 6e 67 20 69 74 | 20 74 6f 20 61 0d 76 61 |tting it| to a.va|
|00000490| 6c 75 65 20 3c 3d 20 30 | 20 63 68 65 63 6b 73 20 |lue <= 0| checks |
|000004a0| 65 76 65 72 79 20 76 69 | 72 74 75 61 6c 20 69 6e |every vi|rtual in|
|000004b0| 73 74 72 75 63 74 69 6f | 6e 2c 20 6d 61 78 69 6d |structio|n, maxim|
|000004c0| 69 7a 69 6e 67 20 72 65 | 73 70 6f 6e 73 69 76 65 |izing re|sponsive|
|000004d0| 6e 65 73 73 0d 61 73 20 | 77 65 6c 6c 20 61 73 20 |ness.as |well as |
|000004e0| 6f 76 65 72 68 65 61 64 | 2e 0d 5c 65 6e 64 7b 64 |overhead|..\end{d|
|000004f0| 61 74 61 64 65 73 63 7d | 0d 0d 5c 62 65 67 69 6e |atadesc}|..\begin|
|00000500| 7b 64 61 74 61 64 65 73 | 63 7d 7b 65 78 63 5f 74 |{datades|c}{exc_t|
|00000510| 79 70 65 7d 0d 5c 64 61 | 74 61 6c 69 6e 65 7b 65 |ype}.\da|taline{e|
|00000520| 78 63 5f 76 61 6c 75 65 | 7d 0d 5c 64 61 74 61 6c |xc_value|}.\datal|
|00000530| 69 6e 65 7b 65 78 63 5f | 74 72 61 63 65 62 61 63 |ine{exc_|tracebac|
|00000540| 6b 7d 0d 20 20 54 68 65 | 73 65 20 74 68 72 65 65 |k}. The|se three|
|00000550| 20 76 61 72 69 61 62 6c | 65 73 20 61 72 65 20 6e | variabl|es are n|
|00000560| 6f 74 20 61 6c 77 61 79 | 73 20 64 65 66 69 6e 65 |ot alway|s define|
|00000570| 64 3b 20 74 68 65 79 20 | 61 72 65 20 73 65 74 20 |d; they |are set |
|00000580| 77 68 65 6e 20 61 6e 0d | 20 20 65 78 63 65 70 74 |when an.| except|
|00000590| 69 6f 6e 20 68 61 6e 64 | 6c 65 72 20 28 61 6e 20 |ion hand|ler (an |
|000005a0| 5c 63 6f 64 65 7b 65 78 | 63 65 70 74 7d 20 63 6c |\code{ex|cept} cl|
|000005b0| 61 75 73 65 20 6f 66 20 | 61 20 5c 63 6f 64 65 7b |ause of |a \code{|
|000005c0| 74 72 79 7d 20 73 74 61 | 74 65 6d 65 6e 74 29 20 |try} sta|tement) |
|000005d0| 69 73 0d 20 20 69 6e 76 | 6f 6b 65 64 2e 20 20 54 |is. inv|oked. T|
|000005e0| 68 65 69 72 20 6d 65 61 | 6e 69 6e 67 20 69 73 3a |heir mea|ning is:|
|000005f0| 20 5c 63 6f 64 65 7b 65 | 78 63 5f 74 79 70 65 7d | \code{e|xc_type}|
|00000600| 20 67 65 74 73 20 74 68 | 65 20 65 78 63 65 70 74 | gets th|e except|
|00000610| 69 6f 6e 20 74 79 70 65 | 20 6f 66 0d 20 20 74 68 |ion type| of. th|
|00000620| 65 20 65 78 63 65 70 74 | 69 6f 6e 20 62 65 69 6e |e except|ion bein|
|00000630| 67 20 68 61 6e 64 6c 65 | 64 3b 20 5c 63 6f 64 65 |g handle|d; \code|
|00000640| 7b 65 78 63 5f 76 61 6c | 75 65 7d 20 67 65 74 73 |{exc_val|ue} gets|
|00000650| 20 74 68 65 20 65 78 63 | 65 70 74 69 6f 6e 0d 20 | the exc|eption. |
|00000660| 20 70 61 72 61 6d 65 74 | 65 72 20 28 69 74 73 20 | paramet|er (its |
|00000670| 5c 64 66 6e 7b 61 73 73 | 6f 63 69 61 74 65 64 20 |\dfn{ass|ociated |
|00000680| 76 61 6c 75 65 7d 20 6f | 72 20 74 68 65 20 73 65 |value} o|r the se|
|00000690| 63 6f 6e 64 20 61 72 67 | 75 6d 65 6e 74 20 74 6f |cond arg|ument to|
|000006a0| 0d 20 20 5c 63 6f 64 65 | 7b 72 61 69 73 65 7d 29 |. \code|{raise})|
|000006b0| 3b 20 5c 63 6f 64 65 7b | 65 78 63 5f 74 72 61 63 |; \code{|exc_trac|
|000006c0| 65 62 61 63 6b 7d 20 67 | 65 74 73 20 61 20 74 72 |eback} g|ets a tr|
|000006d0| 61 63 65 62 61 63 6b 20 | 6f 62 6a 65 63 74 20 77 |aceback |object w|
|000006e0| 68 69 63 68 0d 20 20 65 | 6e 63 61 70 73 75 6c 61 |hich. e|ncapsula|
|000006f0| 74 65 73 20 74 68 65 20 | 63 61 6c 6c 20 73 74 61 |tes the |call sta|
|00000700| 63 6b 20 61 74 20 74 68 | 65 20 70 6f 69 6e 74 20 |ck at th|e point |
|00000710| 77 68 65 72 65 20 74 68 | 65 20 65 78 63 65 70 74 |where th|e except|
|00000720| 69 6f 6e 0d 20 20 6f 72 | 69 67 69 6e 61 6c 6c 79 |ion. or|iginally|
|00000730| 20 6f 63 63 75 72 72 65 | 64 2e 0d 5c 65 6e 64 7b | occurre|d..\end{|
|00000740| 64 61 74 61 64 65 73 63 | 7d 0d 0d 5c 62 65 67 69 |datadesc|}..\begi|
|00000750| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 65 78 69 74 |n{funcde|sc}{exit|
|00000760| 7d 7b 6e 7d 0d 20 20 45 | 78 69 74 20 66 72 6f 6d |}{n}. E|xit from|
|00000770| 20 50 79 74 68 6f 6e 20 | 77 69 74 68 20 6e 75 6d | Python |with num|
|00000780| 65 72 69 63 20 65 78 69 | 74 20 73 74 61 74 75 73 |eric exi|t status|
|00000790| 20 5c 76 61 72 7b 6e 7d | 2e 20 20 54 68 69 73 20 | \var{n}|. This |
|000007a0| 69 73 0d 20 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |is. imp|lemented|
|000007b0| 20 62 79 20 72 61 69 73 | 69 6e 67 20 74 68 65 20 | by rais|ing the |
|000007c0| 5c 63 6f 64 65 7b 53 79 | 73 74 65 6d 45 78 69 74 |\code{Sy|stemExit|
|000007d0| 7d 20 65 78 63 65 70 74 | 69 6f 6e 2c 20 73 6f 20 |} except|ion, so |
|000007e0| 63 6c 65 61 6e 75 70 0d | 20 20 61 63 74 69 6f 6e |cleanup.| action|
|000007f0| 73 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 5c |s specif|ied by \|
|00000800| 63 6f 64 65 7b 66 69 6e | 61 6c 6c 79 7d 20 63 6c |code{fin|ally} cl|
|00000810| 61 75 73 65 73 20 6f 66 | 20 5c 63 6f 64 65 7b 74 |auses of| \code{t|
|00000820| 72 79 7d 20 73 74 61 74 | 65 6d 65 6e 74 73 0d 20 |ry} stat|ements. |
|00000830| 20 61 72 65 20 68 6f 6e | 6f 72 65 64 2c 20 61 6e | are hon|ored, an|
|00000840| 64 20 69 74 20 69 73 20 | 70 6f 73 73 69 62 6c 65 |d it is |possible|
|00000850| 20 74 6f 20 63 61 74 63 | 68 20 74 68 65 20 65 78 | to catc|h the ex|
|00000860| 69 74 20 61 74 74 65 6d | 70 74 20 61 74 20 61 6e |it attem|pt at an|
|00000870| 20 6f 75 74 65 72 0d 20 | 20 6c 65 76 65 6c 2e 0d | outer. | level..|
|00000880| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 0d 0d |\end{fun|cdesc}..|
|00000890| 5c 62 65 67 69 6e 7b 64 | 61 74 61 64 65 73 63 7d |\begin{d|atadesc}|
|000008a0| 7b 65 78 69 74 66 75 6e | 63 7d 0d 20 20 54 68 69 |{exitfun|c}. Thi|
|000008b0| 73 20 76 61 6c 75 65 20 | 69 73 20 6e 6f 74 20 61 |s value |is not a|
|000008c0| 63 74 75 61 6c 6c 79 20 | 64 65 66 69 6e 65 64 20 |ctually |defined |
|000008d0| 62 79 20 74 68 65 20 6d | 6f 64 75 6c 65 2c 20 62 |by the m|odule, b|
|000008e0| 75 74 20 63 61 6e 20 62 | 65 20 73 65 74 20 62 79 |ut can b|e set by|
|000008f0| 0d 20 20 74 68 65 20 75 | 73 65 72 20 28 6f 72 20 |. the u|ser (or |
|00000900| 62 79 20 61 20 70 72 6f | 67 72 61 6d 29 20 74 6f |by a pro|gram) to|
|00000910| 20 73 70 65 63 69 66 79 | 20 61 20 63 6c 65 61 6e | specify| a clean|
|00000920| 2d 75 70 20 61 63 74 69 | 6f 6e 20 61 74 20 70 72 |-up acti|on at pr|
|00000930| 6f 67 72 61 6d 0d 20 20 | 65 78 69 74 2e 20 20 57 |ogram. |exit. W|
|00000940| 68 65 6e 20 73 65 74 2c | 20 69 74 20 73 68 6f 75 |hen set,| it shou|
|00000950| 6c 64 20 62 65 20 61 20 | 70 61 72 61 6d 65 74 65 |ld be a |paramete|
|00000960| 72 6c 65 73 73 20 66 75 | 6e 63 74 69 6f 6e 2e 20 |rless fu|nction. |
|00000970| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 0d 20 | This fu|nction. |
|00000980| 20 77 69 6c 6c 20 62 65 | 20 63 61 6c 6c 65 64 20 | will be| called |
|00000990| 77 68 65 6e 20 74 68 65 | 20 69 6e 74 65 72 70 72 |when the| interpr|
|000009a0| 65 74 65 72 20 65 78 69 | 74 73 20 69 6e 20 61 6e |eter exi|ts in an|
|000009b0| 79 20 77 61 79 20 28 62 | 75 74 20 6e 6f 74 20 77 |y way (b|ut not w|
|000009c0| 68 65 6e 20 61 0d 20 20 | 66 61 74 61 6c 20 65 72 |hen a. |fatal er|
|000009d0| 72 6f 72 20 6f 63 63 75 | 72 73 3a 20 69 6e 20 74 |ror occu|rs: in t|
|000009e0| 68 61 74 20 63 61 73 65 | 20 74 68 65 20 69 6e 74 |hat case| the int|
|000009f0| 65 72 70 72 65 74 65 72 | 27 73 20 69 6e 74 65 72 |erpreter|'s inter|
|00000a00| 6e 61 6c 20 73 74 61 74 | 65 0d 20 20 63 61 6e 6e |nal stat|e. cann|
|00000a10| 6f 74 20 62 65 20 74 72 | 75 73 74 65 64 29 2e 0d |ot be tr|usted)..|
|00000a20| 5c 65 6e 64 7b 64 61 74 | 61 64 65 73 63 7d 0d 0d |\end{dat|adesc}..|
|00000a30| 5c 62 65 67 69 6e 7b 64 | 61 74 61 64 65 73 63 7d |\begin{d|atadesc}|
|00000a40| 7b 6c 61 73 74 5f 74 79 | 70 65 7d 0d 5c 64 61 74 |{last_ty|pe}.\dat|
|00000a50| 61 6c 69 6e 65 7b 6c 61 | 73 74 5f 76 61 6c 75 65 |aline{la|st_value|
|00000a60| 7d 0d 5c 64 61 74 61 6c | 69 6e 65 7b 6c 61 73 74 |}.\datal|ine{last|
|00000a70| 5f 74 72 61 63 65 62 61 | 63 6b 7d 0d 20 20 54 68 |_traceba|ck}. Th|
|00000a80| 65 73 65 20 74 68 72 65 | 65 20 76 61 72 69 61 62 |ese thre|e variab|
|00000a90| 6c 65 73 20 61 72 65 20 | 6e 6f 74 20 61 6c 77 61 |les are |not alwa|
|00000aa0| 79 73 20 64 65 66 69 6e | 65 64 3b 20 74 68 65 79 |ys defin|ed; they|
|00000ab0| 20 61 72 65 20 73 65 74 | 20 77 68 65 6e 20 61 6e | are set| when an|
|00000ac0| 0d 20 20 65 78 63 65 70 | 74 69 6f 6e 20 69 73 20 |. excep|tion is |
|00000ad0| 6e 6f 74 20 68 61 6e 64 | 6c 65 64 20 61 6e 64 20 |not hand|led and |
|00000ae0| 74 68 65 20 69 6e 74 65 | 72 70 72 65 74 65 72 20 |the inte|rpreter |
|00000af0| 70 72 69 6e 74 73 20 61 | 6e 20 65 72 72 6f 72 20 |prints a|n error |
|00000b00| 6d 65 73 73 61 67 65 0d | 20 20 61 6e 64 20 61 20 |message.| and a |
|00000b10| 73 74 61 63 6b 20 74 72 | 61 63 65 62 61 63 6b 2e |stack tr|aceback.|
|00000b20| 20 20 54 68 65 69 72 20 | 69 6e 74 65 6e 64 65 64 | Their |intended|
|00000b30| 20 75 73 65 20 69 73 20 | 74 6f 20 61 6c 6c 6f 77 | use is |to allow|
|00000b40| 20 61 6e 20 69 6e 74 65 | 72 61 63 74 69 76 65 0d | an inte|ractive.|
|00000b50| 20 20 75 73 65 72 20 74 | 6f 20 69 6d 70 6f 72 74 | user t|o import|
|00000b60| 20 61 20 64 65 62 75 67 | 67 65 72 20 6d 6f 64 75 | a debug|ger modu|
|00000b70| 6c 65 20 61 6e 64 20 65 | 6e 67 61 67 65 20 69 6e |le and e|ngage in|
|00000b80| 20 70 6f 73 74 2d 6d 6f | 72 74 65 6d 20 64 65 62 | post-mo|rtem deb|
|00000b90| 75 67 67 69 6e 67 0d 20 | 20 77 69 74 68 6f 75 74 |ugging. | without|
|00000ba0| 20 68 61 76 69 6e 67 20 | 74 6f 20 72 65 2d 65 78 | having |to re-ex|
|00000bb0| 65 63 75 74 65 20 74 68 | 65 20 63 6f 6d 6d 61 6e |ecute th|e comman|
|00000bc0| 64 20 74 68 61 74 20 63 | 61 75 73 65 64 20 74 68 |d that c|aused th|
|00000bd0| 65 20 65 72 72 6f 72 20 | 28 77 68 69 63 68 0d 20 |e error |(which. |
|00000be0| 20 6d 61 79 20 62 65 20 | 68 61 72 64 20 74 6f 20 | may be |hard to |
|00000bf0| 72 65 70 72 6f 64 75 63 | 65 29 2e 20 20 54 68 65 |reproduc|e). The|
|00000c00| 20 6d 65 61 6e 69 6e 67 | 20 6f 66 20 74 68 65 20 | meaning| of the |
|00000c10| 76 61 72 69 61 62 6c 65 | 73 20 69 73 20 74 68 65 |variable|s is the|
|00000c20| 20 73 61 6d 65 0d 20 20 | 61 73 20 74 68 61 74 20 | same. |as that |
|00000c30| 6f 66 20 5c 63 6f 64 65 | 7b 65 78 63 5f 74 79 70 |of \code|{exc_typ|
|00000c40| 65 7d 2c 20 5c 63 6f 64 | 65 7b 65 78 63 5f 76 61 |e}, \cod|e{exc_va|
|00000c50| 6c 75 65 7d 20 61 6e 64 | 20 5c 63 6f 64 65 7b 65 |lue} and| \code{e|
|00000c60| 78 63 5f 74 72 61 63 61 | 62 61 63 6b 7d 2c 0d 20 |xc_traca|back},. |
|00000c70| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 2e 0d 5c | respect|ively..\|
|00000c80| 65 6e 64 7b 64 61 74 61 | 64 65 73 63 7d 0d 0d 5c |end{data|desc}..\|
|00000c90| 62 65 67 69 6e 7b 64 61 | 74 61 64 65 73 63 7d 7b |begin{da|tadesc}{|
|00000ca0| 6d 6f 64 75 6c 65 73 7d | 0d 20 20 47 69 76 65 73 |modules}|. Gives|
|00000cb0| 20 74 68 65 20 6c 69 73 | 74 20 6f 66 20 6d 6f 64 | the lis|t of mod|
|00000cc0| 75 6c 65 73 20 74 68 61 | 74 20 68 61 76 65 20 61 |ules tha|t have a|
|00000cd0| 6c 72 65 61 64 79 20 62 | 65 65 6e 20 6c 6f 61 64 |lready b|een load|
|00000ce0| 65 64 2e 0d 20 20 54 68 | 69 73 20 63 61 6e 20 62 |ed.. Th|is can b|
|00000cf0| 65 20 6d 61 6e 69 70 75 | 6c 61 74 65 64 20 74 6f |e manipu|lated to|
|00000d00| 20 66 6f 72 63 65 20 72 | 65 6c 6f 61 64 69 6e 67 | force r|eloading|
|00000d10| 20 6f 66 20 6d 6f 64 75 | 6c 65 73 20 61 6e 64 20 | of modu|les and |
|00000d20| 6f 74 68 65 72 20 74 72 | 69 63 6b 73 2e 0d 5c 65 |other tr|icks..\e|
|00000d30| 6e 64 7b 64 61 74 61 64 | 65 73 63 7d 0d 0d 5c 62 |nd{datad|esc}..\b|
|00000d40| 65 67 69 6e 7b 64 61 74 | 61 64 65 73 63 7d 7b 70 |egin{dat|adesc}{p|
|00000d50| 61 74 68 7d 0d 20 20 41 | 20 6c 69 73 74 20 6f 66 |ath}. A| list of|
|00000d60| 20 73 74 72 69 6e 67 73 | 20 74 68 61 74 20 73 70 | strings| that sp|
|00000d70| 65 63 69 66 69 65 73 20 | 74 68 65 20 73 65 61 72 |ecifies |the sear|
|00000d80| 63 68 20 70 61 74 68 20 | 66 6f 72 20 6d 6f 64 75 |ch path |for modu|
|00000d90| 6c 65 73 2e 0d 20 20 49 | 6e 69 74 69 61 6c 69 7a |les.. I|nitializ|
|00000da0| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 65 6e 76 69 |ed from |the envi|
|00000db0| 72 6f 6e 6d 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |ronment |variable|
|00000dc0| 20 5c 63 6f 64 65 7b 50 | 59 54 48 4f 4e 50 41 54 | \code{P|YTHONPAT|
|00000dd0| 48 7d 2c 20 6f 72 20 61 | 6e 0d 20 20 69 6e 73 74 |H}, or a|n. inst|
|00000de0| 61 6c 6c 61 74 69 6f 6e | 2d 64 65 70 65 6e 64 65 |allation|-depende|
|00000df0| 6e 74 20 64 65 66 61 75 | 6c 74 2e 0d 5c 65 6e 64 |nt defau|lt..\end|
|00000e00| 7b 64 61 74 61 64 65 73 | 63 7d 0d 0d 5c 62 65 67 |{datades|c}..\beg|
|00000e10| 69 6e 7b 64 61 74 61 64 | 65 73 63 7d 7b 70 73 31 |in{datad|esc}{ps1|
|00000e20| 7d 0d 5c 64 61 74 61 6c | 69 6e 65 7b 70 73 32 7d |}.\datal|ine{ps2}|
|00000e30| 0d 20 20 53 74 72 69 6e | 67 73 20 73 70 65 63 69 |. Strin|gs speci|
|00000e40| 66 79 69 6e 67 20 74 68 | 65 20 70 72 69 6d 61 72 |fying th|e primar|
|00000e50| 79 20 61 6e 64 20 73 65 | 63 6f 6e 64 61 72 79 20 |y and se|condary |
|00000e60| 70 72 6f 6d 70 74 20 6f | 66 20 74 68 65 0d 20 20 |prompt o|f the. |
|00000e70| 69 6e 74 65 72 70 72 65 | 74 65 72 2e 20 20 54 68 |interpre|ter. Th|
|00000e80| 65 73 65 20 61 72 65 20 | 6f 6e 6c 79 20 64 65 66 |ese are |only def|
|00000e90| 69 6e 65 64 20 69 66 20 | 74 68 65 20 69 6e 74 65 |ined if |the inte|
|00000ea0| 72 70 72 65 74 65 72 20 | 69 73 20 69 6e 0d 20 20 |rpreter |is in. |
|00000eb0| 69 6e 74 65 72 61 63 74 | 69 76 65 20 6d 6f 64 65 |interact|ive mode|
|00000ec0| 2e 20 20 54 68 65 69 72 | 20 69 6e 69 74 69 61 6c |. Their| initial|
|00000ed0| 20 76 61 6c 75 65 73 20 | 69 6e 20 74 68 69 73 20 | values |in this |
|00000ee0| 63 61 73 65 20 61 72 65 | 0d 20 20 5c 63 6f 64 65 |case are|. \code|
|00000ef0| 7b 27 3e 3e 3e 20 27 7d | 20 61 6e 64 20 5c 63 6f |{'>>> '}| and \co|
|00000f00| 64 65 7b 27 2e 2e 2e 20 | 27 7d 2e 0d 5c 65 6e 64 |de{'... |'}..\end|
|00000f10| 7b 64 61 74 61 64 65 73 | 63 7d 0d 0d 5c 62 65 67 |{datades|c}..\beg|
|00000f20| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 73 65 74 |in{funcd|esc}{set|
|00000f30| 74 72 61 63 65 7d 7b 74 | 72 61 63 65 66 75 6e 63 |trace}{t|racefunc|
|00000f40| 7d 0d 20 20 53 65 74 20 | 74 68 65 20 73 79 73 74 |}. Set |the syst|
|00000f50| 65 6d 27 73 20 74 72 61 | 63 65 20 66 75 6e 63 74 |em's tra|ce funct|
|00000f60| 69 6f 6e 2c 20 77 68 69 | 63 68 20 61 6c 6c 6f 77 |ion, whi|ch allow|
|00000f70| 73 20 79 6f 75 20 74 6f | 20 69 6d 70 6c 65 6d 65 |s you to| impleme|
|00000f80| 6e 74 20 61 0d 20 20 50 | 79 74 68 6f 6e 20 73 6f |nt a. P|ython so|
|00000f90| 75 72 63 65 20 63 6f 64 | 65 20 64 65 62 75 67 67 |urce cod|e debugg|
|00000fa0| 65 72 20 69 6e 20 50 79 | 74 68 6f 6e 2e 20 20 54 |er in Py|thon. T|
|00000fb0| 68 65 20 73 74 61 6e 64 | 61 72 64 20 6d 6f 64 75 |he stand|ard modu|
|00000fc0| 6c 65 73 0d 20 20 5c 63 | 6f 64 65 7b 70 64 62 7d |les. \c|ode{pdb}|
|00000fd0| 20 61 6e 64 20 5c 63 6f | 64 65 7b 77 64 62 7d 20 | and \co|de{wdb} |
|00000fe0| 61 72 65 20 73 75 63 68 | 20 64 65 62 75 67 67 65 |are such| debugge|
|00000ff0| 72 73 3b 20 74 68 65 20 | 64 69 66 66 65 72 65 6e |rs; the |differen|
|00001000| 63 65 20 69 73 20 74 68 | 61 74 0d 20 20 5c 63 6f |ce is th|at. \co|
|00001010| 64 65 7b 77 64 62 7d 20 | 75 73 65 73 20 77 69 6e |de{wdb} |uses win|
|00001020| 64 6f 77 73 20 61 6e 64 | 20 6e 65 65 64 73 20 53 |dows and| needs S|
|00001030| 54 44 57 49 4e 2c 20 77 | 68 69 6c 65 20 5c 63 6f |TDWIN, w|hile \co|
|00001040| 64 65 7b 70 64 62 7d 20 | 68 61 73 20 61 0d 20 20 |de{pdb} |has a. |
|00001050| 6c 69 6e 65 2d 6f 72 69 | 65 6e 74 65 64 20 69 6e |line-ori|ented in|
|00001060| 74 65 72 66 61 63 65 20 | 6e 6f 74 20 75 6e 6c 69 |terface |not unli|
|00001070| 6b 65 20 64 62 78 2e 20 | 20 53 65 65 20 74 68 65 |ke dbx. | See the|
|00001080| 20 66 69 6c 65 20 5c 66 | 69 6c 65 7b 70 64 62 2e | file \f|ile{pdb.|
|00001090| 64 6f 63 7d 0d 20 20 69 | 6e 20 74 68 65 20 50 79 |doc}. i|n the Py|
|000010a0| 74 68 6f 6e 20 6c 69 62 | 72 61 72 79 20 73 6f 75 |thon lib|rary sou|
|000010b0| 72 63 65 20 64 69 72 65 | 63 74 6f 72 79 20 66 6f |rce dire|ctory fo|
|000010c0| 72 20 6d 6f 72 65 20 64 | 6f 63 75 6d 65 6e 74 61 |r more d|ocumenta|
|000010d0| 74 69 6f 6e 20 28 62 6f | 74 68 0d 20 20 61 62 6f |tion (bo|th. abo|
|000010e0| 75 74 20 5c 63 6f 64 65 | 7b 70 64 62 7d 20 61 6e |ut \code|{pdb} an|
|000010f0| 64 20 5c 63 6f 64 65 7b | 73 79 73 2e 74 72 61 63 |d \code{|sys.trac|
|00001100| 65 7d 29 2e 0d 5c 65 6e | 64 7b 66 75 6e 63 64 65 |e})..\en|d{funcde|
|00001110| 73 63 7d 0d 5c 74 74 69 | 6e 64 65 78 7b 70 64 62 |sc}.\tti|ndex{pdb|
|00001120| 7d 0d 5c 74 74 69 6e 64 | 65 78 7b 77 64 62 7d 0d |}.\ttind|ex{wdb}.|
|00001130| 5c 69 6e 64 65 78 7b 74 | 72 61 63 65 20 66 75 6e |\index{t|race fun|
|00001140| 63 74 69 6f 6e 7d 0d 0d | 5c 62 65 67 69 6e 7b 66 |ction}..|\begin{f|
|00001150| 75 6e 63 64 65 73 63 7d | 7b 73 65 74 70 72 6f 66 |uncdesc}|{setprof|
|00001160| 69 6c 65 7d 7b 70 72 6f | 66 69 6c 65 66 75 6e 63 |ile}{pro|filefunc|
|00001170| 7d 0d 20 20 53 65 74 20 | 74 68 65 20 73 79 73 74 |}. Set |the syst|
|00001180| 65 6d 27 73 20 70 72 6f | 66 69 6c 65 20 66 75 6e |em's pro|file fun|
|00001190| 63 74 69 6f 6e 2c 20 77 | 68 69 63 68 20 61 6c 6c |ction, w|hich all|
|000011a0| 6f 77 73 20 79 6f 75 20 | 74 6f 20 69 6d 70 6c 65 |ows you |to imple|
|000011b0| 6d 65 6e 74 20 61 0d 20 | 20 50 79 74 68 6f 6e 20 |ment a. | Python |
|000011c0| 73 6f 75 72 63 65 20 63 | 6f 64 65 20 70 72 6f 66 |source c|ode prof|
|000011d0| 69 6c 65 72 20 69 6e 20 | 50 79 74 68 6f 6e 2e 20 |iler in |Python. |
|000011e0| 20 54 68 65 20 73 79 73 | 74 65 6d 27 73 20 70 72 | The sys|tem's pr|
|000011f0| 6f 66 69 6c 65 20 66 75 | 6e 63 74 69 6f 6e 0d 20 |ofile fu|nction. |
|00001200| 20 69 73 20 63 61 6c 6c | 65 64 20 73 69 6d 69 6c | is call|ed simil|
|00001210| 61 72 6c 79 20 74 6f 20 | 74 68 65 20 73 79 73 74 |arly to |the syst|
|00001220| 65 6d 27 73 20 74 72 61 | 63 65 20 66 75 6e 63 74 |em's tra|ce funct|
|00001230| 69 6f 6e 20 28 73 65 65 | 0d 20 20 5c 63 6f 64 65 |ion (see|. \code|
|00001240| 7b 73 79 73 2e 73 65 74 | 74 72 61 63 65 7d 29 2c |{sys.set|trace}),|
|00001250| 20 62 75 74 20 69 74 20 | 69 73 6e 27 74 20 63 61 | but it |isn't ca|
|00001260| 6c 6c 65 64 20 66 6f 72 | 20 65 61 63 68 20 65 78 |lled for| each ex|
|00001270| 65 63 75 74 65 64 20 6c | 69 6e 65 20 6f 66 0d 20 |ecuted l|ine of. |
|00001280| 20 63 6f 64 65 20 28 6f | 6e 6c 79 20 6f 6e 20 63 | code (o|nly on c|
|00001290| 61 6c 6c 20 61 6e 64 20 | 72 65 74 75 72 6e 20 61 |all and |return a|
|000012a0| 6e 64 20 77 68 65 6e 20 | 61 6e 20 65 78 63 65 70 |nd when |an excep|
|000012b0| 74 69 6f 6e 20 6f 63 63 | 75 72 73 29 2e 20 20 41 |tion occ|urs). A|
|000012c0| 6c 73 6f 2c 0d 20 20 69 | 74 73 20 72 65 74 75 72 |lso,. i|ts retur|
|000012d0| 6e 20 76 61 6c 75 65 20 | 69 73 20 6e 6f 74 20 75 |n value |is not u|
|000012e0| 73 65 64 2c 20 73 6f 20 | 69 74 20 63 61 6e 20 6a |sed, so |it can j|
|000012f0| 75 73 74 20 72 65 74 75 | 72 6e 20 5c 63 6f 64 65 |ust retu|rn \code|
|00001300| 7b 4e 6f 6e 65 7d 2e 0d | 5c 65 6e 64 7b 66 75 6e |{None}..|\end{fun|
|00001310| 63 64 65 73 63 7d 0d 5c | 69 6e 64 65 78 7b 70 72 |cdesc}.\|index{pr|
|00001320| 6f 66 69 6c 65 20 66 75 | 6e 63 74 69 6f 6e 7d 0d |ofile fu|nction}.|
|00001330| 0d 5c 62 65 67 69 6e 7b | 64 61 74 61 64 65 73 63 |.\begin{|datadesc|
|00001340| 7d 7b 73 74 64 69 6e 7d | 0d 5c 64 61 74 61 6c 69 |}{stdin}|.\datali|
|00001350| 6e 65 7b 73 74 64 6f 75 | 74 7d 0d 5c 64 61 74 61 |ne{stdou|t}.\data|
|00001360| 6c 69 6e 65 7b 73 74 64 | 65 72 72 7d 0d 20 20 46 |line{std|err}. F|
|00001370| 69 6c 65 20 6f 62 6a 65 | 63 74 73 20 63 6f 72 72 |ile obje|cts corr|
|00001380| 65 73 70 6f 6e 64 69 6e | 67 20 74 6f 20 74 68 65 |espondin|g to the|
|00001390| 20 69 6e 74 65 72 70 72 | 65 74 65 72 27 73 20 73 | interpr|eter's s|
|000013a0| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 2c 0d 20 |tandard |input,. |
|000013b0| 20 6f 75 74 70 75 74 20 | 61 6e 64 20 65 72 72 6f | output |and erro|
|000013c0| 72 20 73 74 72 65 61 6d | 73 2e 20 20 5c 63 6f 64 |r stream|s. \cod|
|000013d0| 65 7b 73 79 73 2e 73 74 | 64 69 6e 7d 20 69 73 20 |e{sys.st|din} is |
|000013e0| 75 73 65 64 20 66 6f 72 | 20 61 6c 6c 0d 20 20 69 |used for| all. i|
|000013f0| 6e 74 65 72 70 72 65 74 | 65 72 20 69 6e 70 75 74 |nterpret|er input|
|00001400| 20 65 78 63 65 70 74 20 | 66 6f 72 20 73 63 72 69 | except |for scri|
|00001410| 70 74 73 20 62 75 74 20 | 69 6e 63 6c 75 64 69 6e |pts but |includin|
|00001420| 67 20 63 61 6c 6c 73 20 | 74 6f 0d 20 20 5c 63 6f |g calls |to. \co|
|00001430| 64 65 7b 69 6e 70 75 74 | 28 29 7d 20 61 6e 64 20 |de{input|()} and |
|00001440| 5c 63 6f 64 65 7b 72 61 | 77 5f 69 6e 70 75 74 28 |\code{ra|w_input(|
|00001450| 29 7d 2e 20 20 5c 63 6f | 64 65 7b 73 79 73 2e 73 |)}. \co|de{sys.s|
|00001460| 74 64 6f 75 74 7d 20 69 | 73 20 75 73 65 64 0d 20 |tdout} i|s used. |
|00001470| 20 66 6f 72 20 74 68 65 | 20 6f 75 74 70 75 74 20 | for the| output |
|00001480| 6f 66 20 5c 63 6f 64 65 | 7b 70 72 69 6e 74 7d 20 |of \code|{print} |
|00001490| 61 6e 64 20 65 78 70 72 | 65 73 73 69 6f 6e 20 73 |and expr|ession s|
|000014a0| 74 61 74 65 6d 65 6e 74 | 73 20 61 6e 64 20 66 6f |tatement|s and fo|
|000014b0| 72 20 74 68 65 0d 20 20 | 70 72 6f 6d 70 74 73 20 |r the. |prompts |
|000014c0| 6f 66 20 5c 63 6f 64 65 | 7b 69 6e 70 75 74 28 29 |of \code|{input()|
|000014d0| 7d 20 61 6e 64 20 5c 63 | 6f 64 65 7b 72 61 77 5f |} and \c|ode{raw_|
|000014e0| 69 6e 70 75 74 28 29 7d | 2e 20 20 54 68 65 20 69 |input()}|. The i|
|000014f0| 6e 74 65 72 70 72 65 74 | 65 72 27 73 0d 20 20 6f |nterpret|er's. o|
|00001500| 77 6e 20 70 72 6f 6d 70 | 74 73 20 61 6e 64 20 28 |wn promp|ts and (|
|00001510| 61 6c 6d 6f 73 74 20 61 | 6c 6c 20 6f 66 29 20 69 |almost a|ll of) i|
|00001520| 74 73 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |ts error| message|
|00001530| 73 20 67 6f 20 74 6f 0d | 20 20 5c 63 6f 64 65 7b |s go to.| \code{|
|00001540| 73 79 73 2e 73 74 64 65 | 72 72 7d 2e 20 20 5c 63 |sys.stde|rr}. \c|
|00001550| 6f 64 65 7b 73 79 73 2e | 73 74 64 6f 75 74 7d 20 |ode{sys.|stdout} |
|00001560| 61 6e 64 20 5c 63 6f 64 | 65 7b 73 79 73 2e 73 74 |and \cod|e{sys.st|
|00001570| 64 65 72 72 7d 20 6e 65 | 65 64 6e 27 74 0d 20 20 |derr} ne|edn't. |
|00001580| 62 65 20 62 75 69 6c 74 | 2d 69 6e 20 66 69 6c 65 |be built|-in file|
|00001590| 20 6f 62 6a 65 63 74 73 | 3a 20 61 6e 79 20 6f 62 | objects|: any ob|
|000015a0| 6a 65 63 74 20 69 73 20 | 61 63 63 65 70 74 61 62 |ject is |acceptab|
|000015b0| 6c 65 20 61 73 20 6c 6f | 6e 67 20 61 73 20 69 74 |le as lo|ng as it|
|000015c0| 20 68 61 73 0d 20 20 61 | 20 5c 63 6f 64 65 7b 77 | has. a| \code{w|
|000015d0| 72 69 74 65 7d 20 6d 65 | 74 68 6f 64 20 74 68 61 |rite} me|thod tha|
|000015e0| 74 20 74 61 6b 65 73 20 | 61 20 73 74 72 69 6e 67 |t takes |a string|
|000015f0| 20 61 72 67 75 6d 65 6e | 74 2e 0d 5c 65 6e 64 7b | argumen|t..\end{|
|00001600| 64 61 74 61 64 65 73 63 | 7d 0d 0d 5c 62 65 67 69 |datadesc|}..\begi|
|00001610| 6e 7b 64 61 74 61 64 65 | 73 63 7d 7b 74 72 61 63 |n{datade|sc}{trac|
|00001620| 65 62 61 63 6b 6c 69 6d | 69 74 7d 0d 57 68 65 6e |ebacklim|it}.When|
|00001630| 20 74 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 69 | this va|riable i|
|00001640| 73 20 73 65 74 20 74 6f | 20 61 6e 20 69 6e 74 65 |s set to| an inte|
|00001650| 67 65 72 20 76 61 6c 75 | 65 2c 20 69 74 20 64 65 |ger valu|e, it de|
|00001660| 74 65 72 6d 69 6e 65 73 | 20 74 68 65 0d 6d 61 78 |termines| the.max|
|00001670| 69 6d 75 6d 20 6e 75 6d | 62 65 72 20 6f 66 20 6c |imum num|ber of l|
|00001680| 65 76 65 6c 73 20 6f 66 | 20 74 72 61 63 65 62 61 |evels of| traceba|
|00001690| 63 6b 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 70 |ck infor|mation p|
|000016a0| 72 69 6e 74 65 64 20 77 | 68 65 6e 20 61 6e 0d 75 |rinted w|hen an.u|
|000016b0| 6e 68 61 6e 64 6c 65 64 | 20 65 78 63 65 70 74 69 |nhandled| excepti|
|000016c0| 6f 6e 20 6f 63 63 75 72 | 73 2e 20 20 54 68 65 20 |on occur|s. The |
|000016d0| 64 65 66 61 75 6c 74 20 | 69 73 20 31 30 30 30 2e |default |is 1000.|
|000016e0| 20 20 57 68 65 6e 20 73 | 65 74 20 74 6f 20 30 20 | When s|et to 0 |
|000016f0| 6f 72 0d 6c 65 73 73 2c | 20 61 6c 6c 20 74 72 61 |or.less,| all tra|
|00001700| 63 65 62 61 63 6b 20 69 | 6e 66 6f 72 6d 61 74 69 |ceback i|nformati|
|00001710| 6f 6e 20 69 73 20 73 75 | 70 70 72 65 73 73 65 64 |on is su|ppressed|
|00001720| 20 61 6e 64 20 6f 6e 6c | 79 20 74 68 65 20 65 78 | and onl|y the ex|
|00001730| 63 65 70 74 69 6f 6e 0d | 74 79 70 65 20 61 6e 64 |ception.|type and|
|00001740| 20 76 61 6c 75 65 20 61 | 72 65 20 70 72 69 6e 74 | value a|re print|
|00001750| 65 64 2e 0d 5c 65 6e 64 | 7b 64 61 74 61 64 65 73 |ed..\end|{datades|
|00001760| 63 7d 0d | |c}. | |
+--------+-------------------------+-------------------------+--------+--------+